#ifndef __THandleComponent_H__
#define __THandleComponent_H__


#include <Classes.hpp>

class DELPHICLASS QObject;
class DELPHICLASS QWidget;

class PACKAGE THandleComponent : public Classes::TComponent
{
    typedef TComponent inherited;
    
public:
    __fastcall THandleComponent (Classes::TComponent * AOwner);
    
    __property void * Handle = {read = GetHandle};
    __property QWidget * ParentWidget = {read = GetParentWidget, write = SetParentWidget};
    
protected:
    QObject * FHandle;
    
private:
    QWidget * FParentWidget;
    
    QObject * __fastcall GetHandle ();
    QWidget * __fastcall GetParentWidget ();
    void __fastcall SetParentWidget (QWidget * Value);
};


typedef THandleComponent * THandleComponentH;


#endif /* __THandleComponent_H__ */
